import request from '@/utils/request'
import { gateWay } from './config'

// 获取用户信息
export function getUserInfo(data) {
  return request({
    url: `${gateWay}/system/user/getInfo`,
    method: 'post',
    data
  })
}

// 获取用户信息/user/getDeptUser
export function getDeptUser(params) {
  return request({
    url: `${gateWay}/system/user/getDeptUser`,
    method: 'get',
    params
  })
}
// /dept/tree
export function getDeptAndUser(params) {
  return request({
    url: `${gateWay}/system/dept/tree`,
    method: 'get',
    params
  })
}
